package src;

public class MetricService implements GenericService {

    public String doGet(){
        return String.format("{\"workerConfig\":\"%s\",\"webConfig\":\"%s\",\"queueThreshHold\":\"%s\"}",
        NIOWebServer.metricInfo.getOrDefault(NIOWebServer.WorkerConfigKey,"null"), 
        NIOWebServer.metricInfo.getOrDefault(NIOWebServer.WebConfigKey,"null"), 
        NIOWebServer.metricInfo.getOrDefault(NIOWebServer.ThreshHoldKey,"null"));
    }
    public String doPost(){
        //未实现
        throw new IllegalStateException();
    }

}
